package cn.hxzy.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import cn.hxzy.config.BigDecimalFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yuankan.WANG
 * @since 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "orders_id", type = IdType.ASSIGN_ID)
    private Long ordersId;

    private Integer userId;

    @TableField(exist = false)
    private String userName;

    private Integer trainId;

    @TableField(exist = false)
    private String trainName;
    @JsonSerialize(using = BigDecimalFormat.class)
    private BigDecimal money;
    @TableField(value = "indent_time",fill = FieldFill.INSERT_UPDATE)
    private Date indentTime;

    private Integer seatNo;


}
